package com.rc.saas.tenant.vo.shop;

import com.rc.saas.tenant.model.shop.ShopGoods;

/**
 * @author zcg
 * @Date: 2021/7/5 13:46
 */
public class ShopGoodsVo extends ShopGoods {
    private String classType;

    private String ticketName;

    private int num;

    private Integer stockNum;

    private Integer stockLockedCount;

    private String imageOriginal;

    private String imageDetail1;

    private String imageDetail2;

    private String imageDetail3;

    private String imageBroadcast1;

    private String imageBroadcast2;

    private String imageBroadcast3;

    private String imageBroadcast4;

    private String imageBroadcast5;

    public String getTicketName() {
        return ticketName;
    }

    public void setTicketName(String ticketName) {
        this.ticketName = ticketName;
    }

    public String getImageBroadcast4() {
        return imageBroadcast4;
    }

    public void setImageBroadcast4(String imageBroadcast4) {
        this.imageBroadcast4 = imageBroadcast4;
    }

    public String getImageBroadcast5() {
        return imageBroadcast5;
    }

    public void setImageBroadcast5(String imageBroadcast5) {
        this.imageBroadcast5 = imageBroadcast5;
    }

    public String getClassType() {
        return classType;
    }

    public void setClassType(String classType) {
        this.classType = classType;
    }

    public String getImageOriginal() {
        return imageOriginal;
    }

    public void setImageOriginal(String imageOriginal) {
        this.imageOriginal = imageOriginal;
    }

    public String getImageDetail1() {
        return imageDetail1;
    }

    public void setImageDetail1(String imageDetail1) {
        this.imageDetail1 = imageDetail1;
    }

    public String getImageDetail2() {
        return imageDetail2;
    }

    public void setImageDetail2(String imageDetail2) {
        this.imageDetail2 = imageDetail2;
    }

    public String getImageDetail3() {
        return imageDetail3;
    }

    public void setImageDetail3(String imageDetail3) {
        this.imageDetail3 = imageDetail3;
    }

    public String getImageBroadcast1() {
        return imageBroadcast1;
    }

    public void setImageBroadcast1(String imageBroadcast1) {
        this.imageBroadcast1 = imageBroadcast1;
    }

    public String getImageBroadcast2() {
        return imageBroadcast2;
    }

    public void setImageBroadcast2(String imageBroadcast2) {
        this.imageBroadcast2 = imageBroadcast2;
    }

    public String getImageBroadcast3() {
        return imageBroadcast3;
    }

    public void setImageBroadcast3(String imageBroadcast3) {
        this.imageBroadcast3 = imageBroadcast3;
    }

    public int getNum() {
       if(stockNum!=null){
           if(stockLockedCount!=null){
               return stockNum-stockLockedCount;
           }else {
               return stockNum;
           }
       }else{
           return 0;
       }
    }

    public void setNum(int num) {
        this.num = num;
    }

    @Override
    public Integer getStockNum() {
        return stockNum;
    }

    @Override
    public void setStockNum(Integer stockNum) {
        this.stockNum = stockNum;
    }

    @Override
    public Integer getStockLockedCount() {
        return stockLockedCount;
    }

    @Override
    public void setStockLockedCount(Integer stockLockedCount) {
        this.stockLockedCount = stockLockedCount;
    }
}
